<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Inspire - Admin and Dashboard Template</title>

    <link rel="stylesheet" type="text/css" href="/assets/css/bootstrap.min.css">

    <link rel="stylesheet" type="text/css" href="/assets/fonts/line-icons.css">

    <link rel="stylesheet" type="text/css" href="/assets/css/main.css">

    <link rel="stylesheet" type="text/css" href="/assets/css/responsive.css">
</head>
<body>
<div class="card-header border-bottom">
    <h4 class="card-title">新员工入职</h4>
</div>
<div class="card-body">
    <div class="row">
        <div class="col-lg-10 col-md-12 col-xs-12">
            <form role="form" id="form-validation" novalidate="novalidate">
                <div class="form-group row">
                    <label class="col-sm-2 col-form-label control-label">账号</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" name="userName" placeholder="必填 *">
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2 col-form-label control-label">姓名</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" name="realName" placeholder="">
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2 col-form-label control-label">电话</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" name="phone" placeholder="">
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2 col-form-label control-label">身份证</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" name="card" placeholder="" >
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2 col-form-label control-label">性别</label>
                    <div class="col-sm-9">
                        <select name="gender" class="form-control">
                            <option value="">请选择</option>
                            <option th:value="1">男</option>
                            <option th:value="0">女</option>
                        </select>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2 col-form-label control-label">年龄</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" name="age" placeholder="">
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2 col-form-label control-label">职务</label>
                    <div class="col-sm-9">
                        <select name="role" class="form-control">
                            <option value="">请选择</option>
                            <option th:value="0">超级管理员</option>
                            <option th:value="1">员工</option>
                        </select>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2 col-form-label control-label">密码</label>
                    <div class="col-sm-8">
                        <input id="password" type="text" class="form-control" name="password" placeholder="">
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2 col-form-label control-label">确认密码</label>
                    <div class="col-sm-8">
                        <input type="password" class="form-control" name="newpassword" placeholder="">
                    </div>
                </div>
                <button class="btn btn-common" id="baocun">保存</button>
                <button class="btn btn-common" id="ret">返回</button>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript" th:inline="javascript">
    $(".msg").slideUp(2000);
    $("#baocun").bind("click", function () {
        if(!confirm("确定保存吗")) return
        toJump("/user/save",$("#form-validation").serialize())
    })
    $("#ret").bind("click",function () {
        toJump("/user/query")
    })
</script>
<script src="/assets/js/jquery-min.js"></script>
<script src="/assets/js/popper.min.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
<script src="/assets/js/jquery.app.js"></script>
<script src="/assets/js/main.js"></script>
</body>
</html>